package com.code.controller;

import com.alibaba.fastjson.JSON;
import com.code.service.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * todo
 *
 * @author wangjie
 * @version V1.0
 * @date 2020/1/5
 */
@Controller
public class MyController {

//    @Qualifier("myService1")
//    @Autowired
    @Resource
    private MyService myService;

    public void print(){
        myService.print();
    }
}
